<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>justify-content: space-between</title>
    <style>
        .grid-container {
            display: grid;
            justify-content: space-between;
            /* 设置网格宽度小于容器宽度 */
            grid-template-columns: 50px 50px 50px;
            grid-gap: 10px;
            background-color: #2196F3;
            padding: 10px;
        }

        .grid-container>div {
            background-color: rgba(255, 255, 255, 0.8);
            text-align: center;
            padding: 20px 0;
            font-size: 30px;
        }
    </style>
</head>

<body>

    <h1>justify-content 属性</h1>

    <p>使用 <em>justify-content</em> 属性对齐容器内的网格。</p>

    <p>"space-between" 均匀排列每个元素，首个元素放置于起点，末尾元素放置于终点:</p>

    <div class="grid-container">
        <div>1</div>
        <div>2</div>
        <div>3</div>
        <div>4</div>
        <div>5</div>
        <div>6</div>
    </div>

</body>

</html>